import service from '@/api/request/request'

export function getTrainjobList () {
  return service({
    url: '/trainjob/list',
    method: 'get'
  })
}

export function stopTrainjob (data) {
  return service({
    url: '/trainjob/stop',
    method: 'post',
    data
  })
}

export function createTrainjob (data) {
  return service({
    url: '/trainjob/create',
    method: 'post',
    data
  })
}

export function editTrainjob (data) {
  return service({
    url: '/trainjob/edit',
    method: 'post',
    data
  })
}

export function getTrainjob (params) {
  return service({
    url: '/trainjob/get',
    method: 'get',
    params
  })
}
